//在数据库中验证用户的信息
const user = {
	//查询手机号
	queryUserTel(option){
		return 'select * from user where tel = '+option.userTel+''
	},
	//查询密码
	queryUserPwd(option){
		return 'select * from user where (tel='+option.userTel+') and pwd = '+option.userPwd+''
	},
	//新增用户
	inserData(option) {
		let userTel = option.userTel;
		let userPwd = option.userPwd || '669988';
		return 'insert into user (tel,pwd,nickName,imgUrl,token) values ("' + userTel + '","' + userPwd +'","默认","1.png","2222")';
	}
}

exports = module.exports = user